
//应急值班的对话框
var twosjcxDlg = null;

function twosjcxDlgInit(){
	if(twosjcxDlg==null){//如果对话框不存在，那么创建
		twosjcxDlgCreate();
		twosjcxDlg.zindex();
	}else if(itemExistArray(twosjcxDlg,minDlgArray)){//如果对话框存在，且对话框处在最小化的状态
		//调用minbar.js之中的还原方法
		resizeMinDlgFuncBySecondaryfuncDiv(twosjcxDlg);
	}
	twosjcxDlg.zindex();
}	

//创建对话框
function twosjcxDlgCreate(){
	twosjcxDlg =  $.dialog({
		title: '事件查询',
		content: 'url:jsp/sjgl/sjcx.jsp',
		dlgDivId: "twosjcxDlgId",
		resize: false,
		max: false,
		left:(document.documentElement.clientWidth-830)/2+"px",
		top:'200px',
		width:'830px',
		height:'400px',
		min:twosjcxDlgMinFunction,
		close:twosjcxDlgCloseFunction,
		
	});
}

//关闭的方法
function twosjcxDlgCloseFunction(){
	twosjcxDlg = null;
}

//最小化的方法
function twosjcxDlgMinFunction(){
	minDlgByAnimate(twosjcxDlg);
}
